 //
// Created by 86176 on 2021/11/26.
//

#ifndef IDLESTATUS_H
#define IDLESTATUS_H


#include <cerrno>
#include <cstdint>
//#define __int64 long long;

//typedef __int64 time_t;

class IdleStatus {
public:
    int64_t lastWriteTime;
    int64_t lastReadTime;
    int64_t lastEventTime;
    int64_t thisTime;
    bool readIdle;
    bool writeIdle;
    bool bothIdle;
    int64_t yourIdleTime;
public:
    IdleStatus(int64_t time);
    ~IdleStatus();
    void CheckReadTime(int64_t time);
    void CheckWriteTime(int64_t time);

};


#endif //IDLESTATUS_H
